﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="socialnexus.admin.EntryPoints.Default" 
MasterPageFile="~/masters/Admin.Master" %>

<asp:Content ContentPlaceHolderID="body" runat="server">
<h1>Entry Points</h1>

<p class="info">Entry Points are URLs that allow a group of people to log in by 
simply clicking on their own photo.</p>

<p><asp:HyperLink runat="server" Text="Add an Entry Point" NavigateUrl="Add.aspx" /></p>

<table class="genericTable" cellpadding="0" cellspacing="1" border="0">
<asp:Repeater ID="rptrEntryPoints" runat="server">
    <HeaderTemplate>
        <tr>
            <th>Name</th>
            <th>Description</th>
            <th>Nr Of Users</th>
            <th>Active</th>
            <th class="actions">Actions</th>
        </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
        <td><asp:HyperLink ID="HyperLink1" 
            NavigateUrl='<%# "/EntryPoint.aspx?GUID="+DataBinder.Eval(Container.DataItem, "GUID").ToString() %>'
            Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>' runat="server" /></td>
        <td><asp:Label runat="server" ID="LastName" 
            Text='<%# DataBinder.Eval(Container.DataItem, "Description") %>' /></td>
        <td><asp:HyperLink ID="HyperLink2" 
                NavigateUrl='<%# "Users/Default.aspx?EntryPointId="+DataBinder.Eval(Container.DataItem, "EntryPointId").ToString() %>'
                Text='<%# DataBinder.Eval(Container.DataItem, "NrOfUsers") %>' runat="server" /></td>
        <td><%# DataBinder.Eval(Container.DataItem, "IsActive").ToString() %></td>
        <td>
            <asp:HyperLink ID="lnkEdit" 
                NavigateUrl='<%# "Edit.aspx?EntryPointId="+DataBinder.Eval(Container.DataItem, "EntryPointId").ToString() %>'
                Text="Edit" runat="server" />
        </td>
        </tr>
    </ItemTemplate>
</asp:Repeater>
</table>
</asp:Content>
